-- GENERATED SPELL FOR [Poison Sprite] --


function spell0_12216(pUnit, Event) --@Poison Bolt,n/a--
pUnit:FullCastSpellOnTarget(21067,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12216', 12500, 1)
end

function Sorts_12216(pUnit, Event)
local choix_sorts_12216 = math.random(0, 0)
if choix_sorts_12216 == 0 then
pUnit:RegisterEvent('spell0_12216', 1, 1)
end
end

function mob12216_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12216', math.random(1500, 3000), 1)
end

function mob12216_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12216_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12216_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12216, 1, 'mob12216_Action')
RegisterUnitEvent(12216, 2, 'mob12216_Leave')
RegisterUnitEvent(12216, 3, 'mob12216_Kill')
RegisterUnitEvent(12216, 4, 'mob12216_Die')
